//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __ELASTOS_CTOUCH_H__
#define __ELASTOS_CTOUCH_H__

#include <elasys_server.h>
#include <ddk.h>
#include <driver.h>
#include <grafixcomm.h>
#include <vincievent.h>
#include <vinciLock.h>

#define TOUCHBUFFER_SIZE    32

struct TouchData {
    Int16 dir;
    Int16 x;
    Int16 y;
};

class CTouch : public CDeviceDriver
{
public:
    ~CTouch() {};

    ECode constructor();

    CARAPI Read(
        /* [in] */ Int64 offset,
        /* [in] */ Int32 bytesToRead,
        /* [out] */ MemoryBuf* pBuffer,
        /* [out] */ IEvent** ppCompletionEvent);

    CARAPI Write(
        /* [in] */ Int64 offset,
        /* [in] */ const MemoryBuf &buffer,
        /* [out] */ Int32* pBytesWritten,
        /* [out] */ IEvent** ppCompletionEvent) {
        return E_NOT_IMPLEMENTED;
    }

    CARAPI Control(
        /* [in] */ Handle32 controlCode,
        /* [in] */ const MemoryBuf &inBuffer,
        /* [out] */ MemoryBuf* pOutBuffer,
        /* [out] */ IEvent** ppCompletionEvent) {
        return E_NOT_IMPLEMENTED;
    }

    virtual void Dispose(){}

public:
};

#endif // __ELASTOS_CTOUCH_H__
